.container {
    width: 80%;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: Arial, sans-serif;
}

.up {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cover-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cover img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.grade {
    font-size: 14px;
    color: #666;
}

.cheer {
    font-size: 30px;
    color: #ff7f50;
    font-weight: bold;
}

.middle {
    display: flex;
    flex-direction: column; /* 让子元素垂直排列 */
    gap: 15px; /* 让它们之间有间距 */
    padding: 20px;
    width: 100%;
}

.target,
.plan {
    width: 100%;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative; /* 让按钮固定在右下角 */
}

h3 {
    text-align: left; /* 左对齐标题 */
    margin-bottom: 5px;
}

/*ul {*/
/*    list-style: none;*/
/*    padding: 0;*/
/*    margin: 0;*/
/*}*/

/*ul li {*/
/*    text-align: left;*/
/*    padding-left: 80px; !* 空格效果 *!*/
/*}*/

button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}


.user-target,
.user-plan {
    font-size: 14px;
    color: #007bff;
    margin-bottom: 10px;
    padding-left: 80px;
}

/* 按钮样式 */
.edit-goal,
.edit-plan {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.edit-goal:hover,
.edit-plan:hover {
    background: #0056b3;
}

.down {
    padding: 20px;
}

.stats {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stats h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.highlight {
    font-weight: bold;
    color: #28a745;
}

.progress-bar {
    width: 100%;
    background: #ddd;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background: #28a745;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

form label {
    display: block;
    margin-top: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

form button {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #0056b3;
}
